package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_zhenhuan_third_get_reward", desc = "甄嬛无双门客-甄嬛三阶段领取别人的开宴次数奖励", autoSave = true, dataUpload = true, eventName = "zhguest_thiracc", uploadCk = true)
public class LogZhenHuanThirdGetReward extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "目标玩家id", dataAttribute = "zhguest_thiraccuid")
    private long targetUserId;
    @FieldTypeAnnotation(desc = "累计庆典数", dataAttribute = "zhguest_thiraccnum")
    private int banquetAmount;
    @FieldTypeAnnotation(desc = "领取奖励", dataAttribute = "zhguest_thiraccget")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogZhenHuanThirdGetReward(int activityId, long userId, long targetUserId, int banquetAmount, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.targetUserId = targetUserId;
        this.banquetAmount = banquetAmount;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
